package com.company.project.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lsf
 * @since 2018-11-03
 */
@TableName("sys_doc")
public class Doc extends Model<Doc> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("doc_name")
    private String docName;
    @TableField("doc_size")
    private Double docSize;
    @TableField("doc_date")
    private Date docDate;
    @TableField("doc_persion")
    private String docPersion;
    @TableField("doc_type")
    private String docType;
    @TableField("doc_path")
    private String docPath;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName;
    }

    public Double getDocSize() {
        return docSize;
    }

    public void setDocSize(Double docSize) {
        this.docSize = docSize;
    }

    public Date getDocDate() {
        return docDate;
    }

    public void setDocDate(Date docDate) {
        this.docDate = docDate;
    }

    public String getDocPersion() {
        return docPersion;
    }

    public void setDocPersion(String docPersion) {
        this.docPersion = docPersion;
    }

    public String getDocType() {
        return docType;
    }

    public void setDocType(String docType) {
        this.docType = docType;
    }

    public String getDocPath() {
        return docPath;
    }

    public void setDocPath(String docPath) {
        this.docPath = docPath;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Doc{" +
        "id=" + id +
        ", docName=" + docName +
        ", docSize=" + docSize +
        ", docDate=" + docDate +
        ", docPersion=" + docPersion +
        ", docType=" + docType +
        ", docPath=" + docPath +
        "}";
    }
}
